/*
 * TimerTask.h
 *
 *  Created on: 15 Sep, 2017
 *      Author: buffon
 */

#ifndef TimerTask_H_
#define TimerTask_H_

#include "base/Thread.h"
#include "MemAudio.h"
#include "base/HttpClient.h"

class TimerTask:public CTask
{
public:
	TimerTask(char* buffer,int begin,int end,int nTvId,std::string postUrl);
	virtual ~TimerTask();

	virtual void run();
private:
	bool saveToFile(char* pData,int length);
private:
	char* pBuffer;
	int tvsId;
	std::string url;
	CHttpClient http;
	int nBegin;
	int nEnd;
};



#endif /* TimerTask_H_ */
